//
// Created by 28735 on 2024/11/25.
//

#ifndef CHILDTREE_H
#define CHILDTREE_H

#define MAXSIZE 100

/*  m叉树
 *  树高为h的m叉树，至多为有(m^h-1)/(m-1)个结点
 *  n个结点的树，树高h至少为log(m)(n(m-1)+1)，至多为n
 */


typedef struct Node
{
    int location;

    Node* next;
}*NodePtr;

/*  孩子表示法*/
typedef struct
{
    int data;

    NodePtr firstChild;
}ChildTree[MAXSIZE];

#endif //CHILDTREE_H
